﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Entity;
using System.Web;
using BAL.Infrastructure;
using BAL.Interfaces;
using DAL;
using DAL.Infrastructure;
using DAL.Interfaces;
using DAL.Models;

namespace BAL
{
    public class BALEditorials : ServiceBase<Editorials>, IEditorialsService
    {

        public BALEditorials(IRepository<Editorials> repository, IApplicationContext context) 
            : base(repository, context)
        { 
                    
        }

        public override IQueryable<Editorials> GetAllValidados()
        {
            try
            {
                return _repository.GetAllValidados().Include(m => m.Materials);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
